package com.atguigu.spring5.bean1;

/**
 * @author liangchao
 * @create 2021-06-03 19:19
 */
public class Book {
    // 创建属性
    private String name="王力宏";
    private String author;
    private String address;
    private String description;

    public void setDescription(String description) {
        this.description = description;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    // 创建属性对应的set方法
    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void read(){
        System.out.println(String.format("name:%s, author:%s, address: %s, desc:%s ",name,author,address,description));
    }
}
